package request

type UploadFileReq struct {
	BucketID      int64  `form:"bucket_id" binding:"required"`
	BucketName    string `form:"bucket_name" binding:"required"`
	CatalogueID   int64  `form:"catalogue_id" binding:"required"`
	CatalogueName string `form:"catalogue_name" binding:"required"`
}

// type
type ObjectAllReq struct {
	BucketName    string `form:"bucket_name" binding:"required"`
	CatalogueName string `form:"catalogue_name" binding:"required"`
	Limit         int64  `form:"limit" binding:"required"`
	Page          int64  `form:"page" binding:"required"`
}
type ObjectAllResp struct {
	//Count         int64  `json:"count"`
	FileLink      string `json:"file_link"`
	BucketName    string `json:"bucket_name"`
	CatalogueName string `json:"catalogue_name"`
	Type          string `json:"type"`
	ID            int64  `json:"id"`
	UserId        int64  `json:"user_id"`
	Size          string `json:"size"`
	FileName      string `json:"file_name"`
	CreateAt      string `json:"create_at"`
	//FileName          int64  `form:"page" binding:"required"`
}

type ObjectSearchReq struct {
	BucketName    string `form:"bucket_name" binding:"required"`
	CatalogueName string `form:"catalogue_name" binding:"required"`
	ObjectName    string `form:"object_name" binding:"required"`
	Limit         int64  `form:"limit" binding:"required"`
	Page          int64  `form:"page" binding:"required"`
}

type ObjectDel struct {
	BucketName    string `form:"bucket_name" binding:"required"`
	CatalogueName string `form:"catalogue_name" binding:"required"`
	ObjectName    string `form:"object_name" binding:"required"`
}

type DownloadFileReq struct {
	ID            int64  `form:"id" binding:"required"`
	BucketNamde   string `form:"bucketname" binding:"required"`
	CatalogueName string `form:"cataloguename" bind:"required"`
}
